package designpattern.command18.command_first;

/**
 * Created by JohnSun on 2017/6/28.
 */

public class LightOnCommand implements CommandF {
    Light light;

    public LightOnCommand(Light light) {
        this.light = light;
    }


    @Override
    public void execute() {
       light.on();
    }
}
